home *** CD-ROM | disk | FTP | other *** search
/ HAKERIS 11 / HAKERIS 11.ISO / linux / system / LinuxConsole 0.4 / linuxconsole0.4install-en.iso / linuxconsole0.4.lcm / etc / hotplug / usb / usb-storage next >
Encoding:
Text File  |  2004-03-26  |  410 b   |  22 lines

  1. #!/bin/bash
  2.  
  3. cd /etc/hotplug
  4. . hotplug.functions
  5.  
  6. load_module () {
  7.     MODULE=$1
  8.     if ! $(grep -q "^$MODULE " /proc/modules); then
  9.     debug_mesg "loading ... $MODULE"
  10.     if $MODPROBE -n $MODULE >/dev/null 2>&1 &&
  11.         ! $MODPROBE $MODULE >/dev/null 2>&1 ; then
  12.         mesg "... can't load module $MODULE"
  13.     fi    
  14.     else
  15.     debug_mesg "$MODULE allready loaded"
  16.     fi
  17. }
  18.  
  19. debug_mesg "Load scsimon"
  20. load_module scsimon
  21.  
  22.